import { ListView, RightRun, TransactionOrder } from '@icon-park/vue-next';
import { markRaw } from 'vue';

const basicForm = () => import('@/views/form/basic_form/index.vue');
const stepForm = () => import('@/views/form/step_form/index.vue');

const pages = {
  path: '/form',
  name: 'form',
  redirect: '/form/basic',
  meta: {
    icon: markRaw(ListView),
    title: '表单'
  },
  children: [
    {
      path: 'basic',
      name: 'form_basic',
      meta: {
        icon: markRaw(TransactionOrder),
        title: '基础表单'
      },
      component: basicForm
    },
    {
      path: 'step',
      name: 'form_step',
      meta: {
        icon: markRaw(RightRun),
        title: '分步表单'
      },
      component: stepForm
    }
  ]
};
export default pages;
